package o;

import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;

public abstract class ath {
    public boolean ᐝ() {
        return this instanceof atg;
    }

    public boolean ʼ() {
        return this instanceof atk;
    }

    public boolean ʽ() {
        return this instanceof atj;
    }

    public boolean ॱॱ() {
        return this instanceof atl;
    }

    public atk ͺ() {
        if (ʼ()) {
            return (atk) this;
        }
        throw new IllegalStateException("Not a JSON Object: " + this);
    }

    public atg ˋॱ() {
        if (ᐝ()) {
            return (atg) this;
        }
        throw new IllegalStateException("Not a JSON Array: " + this);
    }

    public atj ˏॱ() {
        if (ʽ()) {
            return (atj) this;
        }
        throw new IllegalStateException("Not a JSON Primitive: " + this);
    }

    public boolean ʻ() {
        throw new UnsupportedOperationException(getClass().getSimpleName());
    }

    Boolean ॱˊ() {
        throw new UnsupportedOperationException(getClass().getSimpleName());
    }

    public Number ॱ() {
        throw new UnsupportedOperationException(getClass().getSimpleName());
    }

    public String ˏ() {
        throw new UnsupportedOperationException(getClass().getSimpleName());
    }

    public double ˋ() {
        throw new UnsupportedOperationException(getClass().getSimpleName());
    }

    public long ˊ() {
        throw new UnsupportedOperationException(getClass().getSimpleName());
    }

    public int ˎ() {
        throw new UnsupportedOperationException(getClass().getSimpleName());
    }

    public String toString() {
        try {
            Writer stringWriter = new StringWriter();
            aux o_aux = new aux(stringWriter);
            o_aux.ˋ(true);
            auc.ˎ(this, o_aux);
            return stringWriter.toString();
        } catch (IOException e) {
            throw new AssertionError(e);
        }
    }
}
